Show AllShow All

Repeat a character in a cell

Use the REPT function to do this task.

Worksheet example

The example may be easier to understand if you copy it to a blank worksheet.

ShowHow?

 
1
2
3
A B
Formula Description (Result)
=REPT(".",6) Repeat a period (.) 6 times (......)
=REPT("-",4) Repeat a dash (-) 4 times (----)

Function details

REPT